package com.funny.learning.english.model;

import org.json.JSONObject;

import com.funny.learning.english.api.Define;

public class GameTypeEntity {
	private String iid;
	private String name;
	private String slug;
	private String url;
	private String id;

	// "iid": 2,
	// "name": "nối từ",
	// "slug": "noi-tu",
	// "url": "547edfc178a23cc93837f8eb.jpg",
	// "id": "547edfc778a23ccb3837f8e8"
	public GameTypeEntity() {
	}
	
	public GameTypeEntity(JSONObject jsonObject) {
		iid = jsonObject.optString("iid", "");
		name = jsonObject.optString("name", "");
		slug = jsonObject.optString("slug", "");
		url = jsonObject.optString("url", "");
		id = jsonObject.optString("id", "");
	}
	

	public String getIid() {
		return iid;
	}

	public void setIid(String iid) {
		this.iid = iid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSlug() {
		return slug;
	}

	public void setSlug(String slug) {
		this.slug = slug;
	}

	public String getUrl() {
		return Define.ROOT_IMAGE + url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	
}
